﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using HGZP.PLL;
using HGZP.Model;
using HGZP.DAL;


namespace HGZP.BLL
{
    /// <summary>
    /// 郑文亮
    /// 2011-06-16
    /// </summary>
    [Serializable]
    public class DBSaveBLL
    {
        DBSave myDBSave = new DBSave();
        //
        public void SetUpdateSqlString(string sUpdateSql)
        {
            myDBSave.SetUpdateSqlString(sUpdateSql);
        }
        //
        public void SetUpdateDataSet(DataSetList updateDataSet)
        {
            myDBSave.SetUpdateDataSet(updateDataSet);
        }
        //
        public void PrepareSave(string sSql)
        {
            myDBSave.PrepareSave(sSql);
        }
        public void PrepareSave(ICTable myTable)
        {
            myDBSave.PrepareSave(myTable);
            //
        }
        public void PrepareSave(DataSet myDataSet, string myString)
        {
            myDBSave.PrepareSave(myDataSet, myString);
            //
        }
        //
        public void PrepareLogSave(ICTable myTable,  string sRemark)
        {
            myDBSave.PrepareLogSave(myTable, sRemark);
            //
        }
        public void PrepareLogSave(ICTable myTable)
        {
            myDBSave.PrepareLogSave(myTable);
            //
        }
        public void PrepareLogSave(DataTable myTable,  string sRemark)
        {
            myDBSave.PrepareLogSave(myTable, sRemark);
            //
        }
        //
        public bool Save()
        {
            return myDBSave.Save();
        }
        //
    }
    
}
